package cn.edu.ujn.project.supermarket.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.edu.ujn.project.common.annotation.Excel;
import cn.edu.ujn.project.common.core.domain.BaseEntity;

/**
 * 处理记录对象 deal_report
 * 
 * @author kkk
 * @date 2023-11-13
 */
public class DealReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处理记录号 */
    @Excel(name = "处理记录号")
    private String dealId;

    /** 处理单号 */
    @Excel(name = "处理单号")
    private String purchaseReportId;

    /** 处理人 */
    @Excel(name = "处理人")
    private String dealPerson;

    /** 是否通过 */
    @Excel(name = "是否通过")
    private String accept;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dealDate;

    public DealReport() {
    }

    public DealReport(String dealId, String purchaseReportId) {
        this.dealId = dealId;
        this.purchaseReportId = purchaseReportId;
    }

    public DealReport(String dealId, String purchaseReportId, String dealPerson, String accept, Date dealDate) {
        this.dealId = dealId;
        this.purchaseReportId = purchaseReportId;
        this.dealPerson = dealPerson;
        this.accept = accept;
        this.dealDate = dealDate;
    }

    public void setDealId(String dealId)
    {
        this.dealId = dealId;
    }

    public String getDealId() 
    {
        return dealId;
    }
    public void setPurchaseReportId(String purchaseReportId) 
    {
        this.purchaseReportId = purchaseReportId;
    }

    public String getPurchaseReportId() 
    {
        return purchaseReportId;
    }
    public void setDealPerson(String dealPerson) 
    {
        this.dealPerson = dealPerson;
    }

    public String getDealPerson() 
    {
        return dealPerson;
    }
    public void setAccept(String accept) 
    {
        this.accept = accept;
    }

    public String getAccept() 
    {
        return accept;
    }
    public void setDealDate(Date dealDate) 
    {
        this.dealDate = dealDate;
    }

    public Date getDealDate() 
    {
        return dealDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dealId", getDealId())
            .append("purchaseReportId", getPurchaseReportId())
            .append("dealPerson", getDealPerson())
            .append("accept", getAccept())
            .append("dealDate", getDealDate())
            .toString();
    }
}
